package com.eastcom.bm.atom;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="QA_NORMALSCAN_JOB")
public class Atom_NormalScanJob {

	private String id;
	
	private Atom_DatasetDefine dataset_define;
	
	private Date collectStartDataTime;
	
	private Date collectEndDataTime;
	
	private Date startCollectTime;
	
	/**
	 * 采集周期 单位：分钟
	 * */
	private Long period;
	
	@Id
	@Column(name="ID")
	@GenericGenerator(name = "Atom_NormalScanJob-uuid", strategy = "uuid")
	@GeneratedValue(generator = "Atom_NormalScanJob-uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@OneToOne
	@JoinColumn(name="DATASET_ID",referencedColumnName="ID")
	public Atom_DatasetDefine getDataset_define() {
		return dataset_define;
	}

	public void setDataset_define(Atom_DatasetDefine datasetDefine) {
		dataset_define = datasetDefine;
	}

	@Column(name="COLLECT_START_DATATIME")
	public Date getCollectStartDataTime() {
		return collectStartDataTime;
	}

	public void setCollectStartDataTime(Date collectStartDataTime) {
		this.collectStartDataTime = collectStartDataTime;
	}

	@Column(name="COLLECT_END_DATATIME")
	public Date getCollectEndDataTime() {
		return collectEndDataTime;
	}

	public void setCollectEndDataTime(Date collectEndDataTime) {
		this.collectEndDataTime = collectEndDataTime;
	}

	@Column(name="START_COLLECT_TIME")
	public Date getStartCollectTime() {
		return startCollectTime;
	}

	public void setStartCollectTime(Date startCollectTime) {
		this.startCollectTime = startCollectTime;
	}

	@Column(name="PERIOD")
	public Long getPeriod() {
		return period;
	}

	public void setPeriod(Long period) {
		this.period = period;
	}
}
